import { ref } from 'vue'

const useState = (value: any) => {
    
    const state = ref(value)

    const setState = (value: any) => {
        
        state.value = value
    }

    return { state, setState }
}

export default useState